#!/bin/bash

#!/bin/bash

CURDIR="$(pwd)"
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
cd $SCRIPTPATH

mkdir -p ../build
rm -rf ../build/*
cd ../build

cmake -G "Unix Makefiles" -DJNI_INCLUDE_PATH="/usr/jdk1.8.0_421/include/" \
  -DJNI_INCLUDE_PATH2="/usr/jdk1.8.0_421/include/linux" ../
cmake --build .

cd $CURDIR

